import { IParam } from '../../common';
import { IMDViewModel } from './i-md-view-model';

/**
 * 表格视图模型接口
 *
 * @export
 * @interface IGridViewModel
 * @extends {IViewModel}
 */
export interface IGridViewModel extends IMDViewModel {
	/**
	 * 支持行编辑
	 *
	 * @type {boolean}
	 * @memberof IGridViewModel
	 */
	enableRowEdit?: boolean;

	/**
	 * 行激活模式 (0: 无激活、1: 单击激活、2: 双击激活)
	 *
	 * @type {(0 | 1 |2)}
	 * @memberof IGridViewModel
	 */
	rowActiveMode?: 0 | 1 | 2;
    /**
     * 单选
     *
     * @type {boolean}
     * @memberof IGridViewModel
     */
    singleSelect?: boolean;
}
